package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 字典类型表
 * </p>
 *
 * @author guoy
 * @since 2020-03-27
 */
@Data
public class DictTypeEditDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字典类型id
     */
    @NotNull(message = "字典类型id不能为空")
    @ApiModelProperty(value = "字典类型id", dataType = "Long", required = true)
    private Long dictTypeId;

    /**
     * 字典类型编码
     */
    @NotBlank(message = "字典类型id不能为空")
    @ApiModelProperty(value = "字典类型编码", dataType = "String", required = true)
    private String code;

    /**
     * 字典类型名称
     */
    @NotBlank(message = "字典类型名称不能为空")
    @ApiModelProperty(value = "字典类型名称", dataType = "String", required = true)
    private String name;

    /**
     * 字典描述
     */
    @ApiModelProperty(value = "字典描述", dataType = "String", required = false)
    private String description;

    /**
     * 是否是系统字典，Y-是，N-否
     */
    @NotBlank(message = "是否是系统字典不能为空")
    @ApiModelProperty(value = "是否是系统字典，Y-是，N-否", dataType = "String", required = true)
    private String systemFlag;

    /**
     * 状态(字典)
     */
    @NotBlank(message = "状态不能为空")
    @ApiModelProperty(value = "状态(字典)", dataType = "String", required = true)
    private String status;




}
